package com.bluexmicro.ota2.ui.custom

import android.widget.FrameLayout
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.viewinterop.AndroidView

@Composable
fun KeepScreenOnView(keepOn: Boolean, modifier: Modifier) {
    AndroidView(
        factory = {
            val frameLayout = FrameLayout(it)

            frameLayout
        },
        modifier = modifier,
    ) {
        it.keepScreenOn = keepOn
    }
}